Account: xyz-peter.newman from 9220:
Create Person and Subject and Account with a Single Request| name | value |
|---|---|
| subjectName | xyz-peter.newman |
| name | value |
|---|---|
| personFamilyName | Newman |
| personGivenName | Peter |
HTTP GET "/api/hs/accounts/accounts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.newman>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "242a0003-0000-0000-0000-000000000003", // Account: xyz-peter.newman
"person" : {
"uuid" : "7f207c26-2d88-4863-9bbf-84d4b4bbd7c4", // Person: Peter Newman
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : "Hallo",
"title" : null,
"givenName" : "Peter",
"familyName" : "Newman"
},
"subject" : {
"uuid" : "242a0003-0000-0000-0000-000000000003", // Account: xyz-peter.newman
"name" : "xyz-peter.newman",
"type" : "USER"
},
"globalUid" : 21012,
"globalGid" : 21012
} ]
Fetch the account for the current subject to resolve the related person.
HTTP GET "/api/hs/office/persons/7f207c26-2d88-4863-9bbf-84d4b4bbd7c4" // Person: Peter Newman \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<xyz-peter.newman>"` \
`# }`
=> status: 200 OK
{
"uuid" : "7f207c26-2d88-4863-9bbf-84d4b4bbd7c4", // Person: Peter Newman
"personType" : "NATURAL_PERSON",
"tradeName" : null,
"salutation" : "Hallo",
"title" : null,
"givenName" : "Peter",
"familyName" : "Newman"
}
generated on 2026-07-17 01:42:19 for branch